package com.sfc.spiderweb.entity.param;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.sfc.spiderweb.serializer.AmazonViolationDataDeserialize;
import com.sfc.spiderweb.util.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel("amazon违规数据参数实体")
public class AmazonViolationDataParam extends Page implements Serializable {

    @ApiModelProperty(value = "账号", example = "amazon.ca")
    private String account;
    @ApiModelProperty(value = "获取违规参数开始日期", example = "2020-04-20")
    @JSONField(format = "yyyy-MM-dd")
    private String startDownDate;
    @ApiModelProperty(value = "获取违规参数结束日期", example = "2020-04-21")
    @JSONField(format = "yyyy-MM-dd")
    private String endDownDate;
    @ApiModelProperty(value = "涉嫌侵犯知识产权, 收到的知识产权投诉, 受限商品", example = "涉嫌侵犯知识产权")
    @JsonDeserialize(using = AmazonViolationDataDeserialize.class)
    private String type;
    @ApiModelProperty(value = "状态：1有违规数据，0无违规数据", example = "1")
    private Integer state;

}
